﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace SST.WebClient.Data
{
    public class ChatMessage : BaseData
    {
        public static Dictionary<string, string> SMILEY_MAPPING = new Dictionary<string, string>()
        {
            {"-bigeek-", "bigeek.gif"},
            {"-biggrin-", "biggrin.gif"},
            {"-bigrazz-", "bigrazz.gif"},
            {"-confusedw-", "confusedw.gif"},
            {"-cool-", "cool.gif"},
            {"-cry-", "cry.gif"},
            {"-dead-", "dead.gif"},
            {"-eek-", "eek.gif"},
            {"-embarrassed-", "embarrassed.gif"},
            {"-laugh-", "laugh.gif"},
            {"-mad-", "mad.gif"},
            {"-no-", "no.gif"},
            {"-careless-","none.gif"},
            {"-razz-", "razz.gif"},
            {"-wine-", "wine.gif"},
            {"-rolleyes-", "rolleyes.gif"},
            {"-sad-", "sad.gif"},
            {"-shy-", "shy.gif"},
            {"-sigh-","sighw.gif"},
            {"-sleep-","sleepw.gif"},
            {"-smile-", "smile.gif"},
            {"-smilegrin-","smilewinkgrin.gif"},
            {"-upset-","upsetw.gif"},
            {"-wink-","wink.gif"},
            {"-yes-","yes.gif"},
            {"-beer-","beer.gif"},
            {"-beerl-","beerl.gif"},
            {"-hotcup-","hotcup.gif"},
            {"-martini-","martini.gif"},
            {"-tab-","tab.gif"},
            {"-happyno-","smileno.gif"},
            {"-sadyes-","sadyes.gif"},
            {"-champagne1-","champagne1.png"},
            {"-champagne2-","champagne2.gif"}
        };

        private DateTime _Timestamp;
        /// <summary>
        /// Post time
        /// </summary>
        public DateTime Timestamp
        {
            get { return _Timestamp; }
            set
            {
                _Timestamp = value;
                NotifyPropertyChanged("Timestamp");
            }
        }

        private string _Author;
        /// <summary>
        /// Author
        /// </summary>
        public string Author
        {
            get { return _Author; }
            set
            {
                _Author = value;
                NotifyPropertyChanged("Author");
            }
        }

        private string _Message;
        /// <summary>
        /// Message
        /// </summary>
        public string Message
        {
            get { return _Message; }
            set
            {
                _Message = value;
                NotifyPropertyChanged("Message");
            }
        }
    }
}
